package com.gamesite.gamesite.core.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gamesite.gamesite.core.mapper.GameMapper;
import com.gamesite.gamesite.core.pojo.GameInfo;
import com.gamesite.gamesite.core.service.GameService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GameServiceImpl extends ServiceImpl<GameMapper, GameInfo> implements GameService {
    @Override
    public List<GameInfo> list() {
            return this.baseMapper.selectList(null); // 传入 null 表示没有额外的查询条件
    }

    @Override
    public GameInfo getById(Long id) {
        return this.baseMapper.selectById(id);
    }

    @Override
    public boolean save(GameInfo game) {
        return super.save(game);
    }

    @Override
    public boolean updateById(GameInfo game) {
        return super.save(game);
    }

    @Override
    public void removeById(Long id) {
        super.removeById(id);
    }
}
